package com.strato.json.v1_0_0.core;

import com.google.gson.Gson;

public class GsonBuilder {

	public static Gson build(){
		
		com.google.gson.GsonBuilder builder = new com.google.gson.GsonBuilder().setDateFormat("yyyy-MM-dd HH:mm:ss");
		
		builder.registerTypeAdapter(java.util.Date.class, new DateTypeAdapter());
		builder.registerTypeAdapter(java.util.Calendar.class, new CalendarTypeAdapter());
		builder.registerTypeAdapter(java.sql.Timestamp.class, new TimestampTypeAdapter());
		builder.registerTypeAdapter(java.sql.Date.class, new SqlDateTypeAdapter());
		
		return builder.create();
	}
	
}
